//
//  ConfirmPriceSubCell.swift
//  koolcar
//
//  Created by xiantian on 2023/11/3.
//

import UIKit

class ConfirmPriceSubCell: UITableViewCell {
    var titleLab: UILabel!
    var rightLab: UILabel!
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        titleLab = UILabel()
        titleLab.textColor = Theme.titleLabColor
        titleLab.backgroundColor = UIColor.clear
        titleLab.font = UIFont.init(name: Theme.PingFangSCRegular, size: 14)
        titleLab.numberOfLines = 1
        titleLab.lineBreakMode = .byTruncatingTail
        titleLab.textAlignment = .left
        contentView.addSubview(titleLab)
        
        rightLab = UILabel()
        rightLab.textColor = Theme.titleLabColor
        rightLab.backgroundColor = UIColor.clear
        rightLab.font = UIFont.init(name: Theme.PingFangSCRegular, size: 14)
        rightLab.numberOfLines = 1
        rightLab.lineBreakMode = .byTruncatingTail
        rightLab.textAlignment = .right
        contentView.addSubview(rightLab)
        
        titleLab.snp.makeConstraints { make in
            make.left.equalTo(14)
            make.top.equalTo(0)
            make.height.equalTo(40)
            make.bottom.equalTo(0).priority(.high)
        }
        
        rightLab.snp.makeConstraints { make in
            make.left.equalTo(titleLab.snp.right)
            make.top.equalTo(0)
            make.height.equalTo(40)
            make.right.equalTo(-14)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
